package com.cy.service;

import com.cy.entity.Address;

import java.util.List;

/**
 * 时间：2023/1/6
 */
public interface IAddressService {
    public void addNewAddress(Integer uid, String username, Address address);

    public List<Address> getByUid(Integer uid);

    /**
     * 修改某个用户的某条收获地址数据作为默认收获地址
     * @param aid 收获地址的id
     * @param uid 用户的id
     * @param username 表示修改的执行人
     */
    public void setDefault(Integer aid,Integer uid,String username);

    public void delete(Integer aid,Integer uid,String username);

    Address getByAid(Integer aid,Integer uid);
}
